import request from '@/utils/request'

// 新增用户职称
export function add(titleinfo) {
  return request({
    url: '/userTitle/add',
    method: 'post',
    data: titleinfo
  })
}

export function update(titleinfo) {
  return request({
    url: '/userTitle/update',
    method: 'put',
    data: titleinfo
  })
}

export function selectById(id) {
  return request({
    url: '/userTitle/' + id,
    method: 'get'
  })
}

export function deleteById(titleinfo) {
  return request({
    url: '/userTitle/delete',
    method: 'delete',
    data: titleinfo
  })
}

export function page(data) {
  return request({
    url: '/userTitle/page',
    method: 'post',
    data: data
  })
}
export function pageUsingPost(data) {
  return request({
    method: 'POST',
    url: '/userTitle/page',
    data
  }
  )
}
